package com.simple.rpc.config;

/**
 * 注册中心配置
 *
 * @author mhh
 * @since 2020/9/18
 */
public class RegistryConfig implements Config {

    /**
     * 注册中心连接地址
     */
    private String host;

    /**
     * 注册中心连接端口
     */
    private String port;

    public String getUrlString() {
        return host + ":" + port;
    }

    public RegistryConfig(String host, String port) {
        this.host = host;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
